package cn.chi.base.mapper;


import cn.chi.base.query.BaseQuery;

import java.util.List;


public interface BaseMapper<T> {
    void save(T t);
    void update(T t);
    void delete(Long id);
    T queryById(Long id);
    List<T> queryAll();
    //用于高级查询和分页 计算总条数
    Long count(BaseQuery query);
    List<T> queryDate(BaseQuery query);
}
